//
//  CustomerNetworking.h
//  UI17_AFNetworking封装
//
//  Created by dllo on 15/9/21.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>

//声明block(负责将请求回来的数据传回VC)

typedef void (^ConnectionBlock)(id response);


@interface CustomerNetworking : NSObject


//@property(nonatomic, copy)ConnectionBlock block;



//-(void)connectWithURL:(NSString *)urlString andParamer:(NSDictionary *)parameters andBlock:(ConnectionBlock)block ;


/**
 *  基于AFNetworking网络请求
 *
 *  @param urlStirng  链接地址
 *  @param parameters 链接参数
 *  @param block      网络请求成功是回调
 */
+(void)customerWithURL:(NSString *)urlStirng andParamer:(NSDictionary *)parameters andBlock:(ConnectionBlock)block ;

@end
